/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class AtencionCriteria extends AbstractORMCriteria {
	public final IntegerExpression idAtencion;
	public final DateExpression fecha;
	public final StringExpression diagnostico;
	
	public AtencionCriteria(Criteria criteria) {
		super(criteria);
		idAtencion = new IntegerExpression("idAtencion", this);
		fecha = new DateExpression("fecha", this);
		diagnostico = new StringExpression("diagnostico", this);
	}
	
	public AtencionCriteria(PersistentSession session) {
		this(session.createCriteria(Atencion.class));
	}
	
	public AtencionCriteria() throws PersistentException {
		this(orm.Prueba1PDSPersistentManager.instance().getSession());
	}
	
	public PacienteCriteria createPacienteidPacienteCriteria() {
		return new PacienteCriteria(createCriteria("pacienteidPaciente"));
	}
	
	public PrestacionCriteria createPrestacionidPrestacionCriteria() {
		return new PrestacionCriteria(createCriteria("prestacionidPrestacion"));
	}
	
	public Atencion uniqueAtencion() {
		return (Atencion) super.uniqueResult();
	}
	
	public Atencion[] listAtencion() {
		java.util.List list = super.list();
		return (Atencion[]) list.toArray(new Atencion[list.size()]);
	}
}

